//
// File:	GuiMenuMain.hpp
// Author:	Thomas TISSOT-DUPONT
// Login:	<thomas.tissotdupont@free.fr>
//
// Create:	28/01/2010 at 23:12:18
// Purpose:	
//
#ifndef GUIMENUMAIN_HPP
#define GUIMENUMAIN_HPP

#include "GuiPanel.hpp"

class GuiMenuMain : public GuiPanel
{
	Q_OBJECT

public:
										GuiMenuMain(QWidget *pParent = NULL);
										~GuiMenuMain();

public:
	void								Update();

public slots:
	void								onCreateGameClicked();
	void								onResumeGameClicked();
	void								onDisconnectClicked();
	void								onJoinGameClicked();
	void								onOptionsClicked();
	void								onQuitClicked();

protected:
	void								showEvent(QShowEvent *e);

private:
	enum Buttons
	{
		ButtonCreateGame,
		ButtonResumeGame,
		ButtonJoinGame,
		ButtonDisconnect,
		ButtonOptions,
		ButtonQuit
	};
	QMap<Buttons, GuiPushButton *>		_menuButtons;
};

#endif //!GUIMENUMAIN_HPP
